package com.qsign.sfrz_android.activity.login.ViewController;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.TextView;

import com.qsign.sfrz_android.R;
import com.qsign.sfrz_android.activity.home.ViewController.LoginActivity;
import com.qsign.sfrz_android.activity.home.ViewController.MainActivity;
import com.qsign.sfrz_android.base.NewBaseActivity;
import com.qsign.sfrz_android.base.YcspUserDataShared;

/**
 * 启动页
 */
public class SplashActivity extends NewBaseActivity {
    @Override
    protected void initTitle(TextView textView) {
    }

    @Override
    protected int getContentViewId() {
        return R.layout.activity_splash;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intentTwice = new Intent(SplashActivity.this, LoginActivity.class);
                startActivity(intentTwice);
                finish();
            }
        }, 500);

    }
    @Override
    public void onPostHandle(int requestType, Object objBody, boolean error) throws Exception {

    }
    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

}